Selective cross-realm authentication

ABSTRACT

A selective cross-realm authenticator associates an identifier with a request from an entity authenticated in one realm to access a resource associated with a second realm. The identifier indicates that the entity was authenticated in a realm other than the realm associated with the requested resource. A domain controller associated with the resource performs an access check to verify that the authenticated user is authorized to authenticate to the requested resource. Permissions associated with the resource can be used to specify levels of access to be granted to entities authenticated by a domain controller associated with another realm.

TECHNICAL FIELD

[0001] This invention relates to computer-based resource security and, in particular, to systems and methods for supporting selective cross-realm authentication.

BACKGROUND

[0002] A domain controller is a server computer system that maintains user accounts associated with one or more client computer systems. The domain controller, together with the client computer systems associated with it, is known as a domain. A domain may also have multiple domain controllers. When a user has an account on a domain controller, the client can log on to any client computer system within the domain, and the user account is authenticated through the domain controller.

[0003] To reduce the need for maintaining duplicate user accounts throughout an organization (e.g., when a user is authorized to access client computer systems in multiple domains), a trust may be established between two or more domains. In this scenario, a user, when authenticated by a first domain, can access a client computer system associated with a second domain provided that a trust exists between the first and second domain. A group of mutually trusted domains is known as a “forest”. For example, a company may have a forest of domains, where each domain is associated with a particular group or organization (e.g., legal, human resources, accounting, etc.) within the company. Based on mutual trust between the domains of the forest, a user within the company can potentially log on to any client computer system within the company.

[0004] For the purposes of this discussion we refer to both Forests and domains as ‘realms’. Note that even though the following descriptions refer to forests the concepts apply to other types of realms and collections of realms as well. The term domain controller refers to an instance of the realm. Many such domain controllers maybe present in a realm. Situations exist in which one entity (e.g., company or organization) wants to grant access to computer resources within its forest to users from another entity. To accomplish this, a trust is established between a forest associated with the first entity and a forest associated with a second entity.

[0005] Users are granted access to a resource based on one or more sets of permissions associated with the resource and the user. Typically, a default set of permissions is granted to all users who are authenticated to access a particular resource. The default set of permissions provide an access level that is considered appropriate for any user that can authenticate to the resource. Within a single domain or resource, the default set of permissions that are granted to all users are typically those permissions that are appropriate for all members of the entity represented by the forest. However, when a trust is established between two forests, users from one forest may be allowed to authenticate to a resource in another forest, but the default access permissions that apply to all users of the resource may not be appropriate for a user that authenticates from a different forest. For example, it may be appropriate for users that authenticate within a single forest to have read access to a particular file resource, while it may not be appropriate for users that authenticate from a different forest to have any access to the particular file resource. This might be happen when the two forests are associated with different corporations or organizations. In other cases such as when the two forests are in the same organization it might make sense to have the same access permissions for users authenticated in either forest.

[0006] As such, it is important to be able to distinguish between access requests originating from users authenticated by a domain controller in a forest whose users can have the same set of permissions as users authenticated by a domain controller in the local forest versus requests originating from users authenticated by a domain controller in a forest whose users should not have the same set of permissions as users authenticated by a domain controller in the local forest. Other criteria may also be used to determine the type of request, such as whether the request originated from a realm associated with the same organization with which the requested resource is associated, or whether the request originated from one of a subset of users in the realm who are allowed to submit such a request.

SUMMARY

[0007] A selective cross-realm authenticator is described. The selective cross-realm authenticator identifies requests from authenticated users in one realm to access resources associated with a second realm. The selective cross-realm authenticator then associates an indicator with the request according to a realm in which the request authenticated or other data associated with authentication of the requesting user. Authentication and resource access decisions may then be made based on the indicator associated with the request. Access permissions associated with a resource may also be based on the indicator.

BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The same numbers are used throughout the drawings to reference like features and components.

[0009]FIG. 1 illustrates an exemplary environment in which selective cross-realm authentication may be implemented.

[0010]FIG. 2 illustrates selected components of a root domain controller in a realm implemented to support selective cross-realm authentication.

[0011]FIG. 3 illustrates a method that can be implemented to support selective cross-realm authentication.

[0012]FIG. 4 illustrates a method that can be implemented to support selective cross-realm authentication.

DETAILED DESCRIPTION

[0013] The following discussion is directed to selective cross-realm authentication within an environment that includes multiple groups of domain controllers. Throughout the following discussion, a realm is defined as any group of resources, such as a domain (which includes one or more domain controllers and the associated computer systems) or a forest (which includes a group of mutually trusted domains). A selective cross-realm authenticator provides a mechanism for indicating that a user requesting access to a resource in a particular realm was authenticated by a domain controller in another realm. The selective cross-realm authenticator also classifies and/or flags the request according to a level of trust that is defined between the two realms. Based on the classification a domain controller associated with the realm to which a user is requesting access verifies that users authenticated from another realm are authorized to access the requested resource. Furthermore, each resource may maintain, at an object level, access permissions that specify levels of access that are allowed to users, such that the permissions granted for users authenticated by a domain controller in the same realm as the resource may be different than the permissions granted for users authenticated by a domain controller associated with another realm. The term “user” or “authenticated user” as used in this discussion refers to any entity that may be authenticated by a domain controller. This may include, but is not limited to, individual users, user groups, applications, and computer systems.

Exemplary Environment

[0014]FIG. 1 illustrates an exemplary environment in which selective cross-realm authentication may be implemented. Environment 100 includes a realm 102, a realm 104, and a cross-realm authenticator 106. In the illustrated example, realm 102 is a forest made up of a group of domains 108, and similarly, realm 104 is also a forest made up of a second group of domains 110. Each domain includes one or more computer-based resources, and maintains a set of user accounts for users who are authorized to access the resources within the domain. For example, as shown in FIG. 1, domain 108(x) includes client computer resources 112(1)-112(z). Similarly, domain 110(y) includes client computer resources 114(1)-114(n). Because there is mutual trust between domains within a forest, any domain 108(1)-108(x) can authenticate a user to access any client computer resource associated with any of the domains 108, including clients 112(1)-112(z). Similarly, any domain 110(1)-110(y) can authenticate a user to access any client computer resource associated with any of the domains 110, including clients 114(1)-114(n).

[0015] When a user in a first realm requests access to a resource in a second realm, fulfilling the request includes two steps. First, the user's identity is proven to the requested resource. Second, the resource determines whether the user has permission to access the resource as requested. The first step, may be a multi-step process in which the user's identity is proven to one or more domain controllers based on an initial authentication of the user's identity by a domain controller associated with a client device through which the user submits a request.

[0016] Trust link 116 between realm 102 and realm 104 represents a mutual trust between the two realms. Based on the trust between realms, a user that is initially authenticated by a domain 108 in realm 102 through any client associated with a domain 108 can be trusted by any domain 110 in realm 104 as being authenticated to any client associated with any domain 110 in realm 104, including clients 114(1)-114(n), and vice versa.

[0017] Selective cross-realm authenticator 106 is implemented to provide an additional level of security by classifying users authenticated in one realm requesting access to a resource in another realm. In one implementation, the cross-realm authenticator 106 associates a security identifier with a user (or with a user request) before the user request reaches the resource that is being requested. A domain controller associated with the requested resource can then grant one level of access to a user authenticated within the same domain as the resource and another level of access to a user authenticated by a domain controller in a different domain.

Domain Controller

[0018] In an exemplary implementation, the root domain controller within a particular realm includes a cross-realm authenticator. FIG. 2 illustrates an exemplary root domain controller implemented to support selective cross-realm authentication. Domain controller 110(1) includes a memory 202 and a processor 204. Domain controller 110(1) also includes an operating system 206 that executes on processor 204 and one or more other applications 208 stored in memory 202 and executed on processor 204. To support selective cross-realm authentication, the domain controller also includes selective cross-realm authenticator 106 stored in memory 202 and executed on processor 204.

Methods for Selective Cross-Realm Authentication

[0019] Selective cross-realm authentication may be described in the general context of computer-executable instructions, such as application modules, being executed by a computer. Generally, application modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. In the described exemplary implementation, selective cross-realm authentication is implemented using methods that may be distributed across multiple components of the environment illustrated in FIG. 1. Selective cross-realm authentication may also be implemented using other types of programming techniques, including in other types of distributed computing environments where tasks are performed by remote processing devices that are linked through various communications networks based on any number of communication protocols. In such a distributed computing environment, application modules may be located in both local and remote computer storage media including memory storage devices.

[0020]FIG. 3 illustrates a method for a client to obtain an access ticket to a second realm when authenticated by a domain controller in a first realm. The method will be described with reference to a network that is implemented using Kerberos, a well-known network authentication protocol. Although described using Kerberos-specific terminology, it is recognized that selective cross-realm authentication, as described herein, may be implemented in networks that are based on other network authentication protocols. Furthermore, the method illustrated in FIG. 3 will be described, for illustrative purposes, with reference to components shown in FIG. 1.

[0021] At block 302, a client computer system 112(1) sends a request to access a resource in another realm to a domain controller 108(x) associated with the client computer system.

[0022] At block 304, a domain controller in domain 108(x) generates a ticket-granting ticket (TGT) and a privilege access certificate (PAC). The TGT is a Kerberos standard that allows a client to request another ticket to gain access to another domain controller or resource. The PAC includes a list of security identifiers associated with the user. An example PAC 306 is illustrated in FIG. 3 and includes a user ID and a user group ID associated with a user group that the user is a member of.

[0023] At block 308, the domain controller 108(x) returns the TGT and PAC to the client computer system 112(1).

[0024] In one implementation, the client computer system 112(1) may submit the request (with the TGT and PAC) to other domains in the same realm, in an effort to find the requested resource. Each domain may add security identifiers to the PAC, depending, for example, on user group memberships that each particular domain controller is aware of.

[0025] At block 310, the client computer system 112(1) sends the request with the TGT and PAC 312 to selective cross-realm authenticator 106.

[0026] At block 313 selective cross-realm authenticator 106 determines whether the request originated from a realm in another organization. If it is determined that the request did not originate from a realm in another organization (the “No” branch from block 313), then the method continues in block 316. On the other hand, if it is determined that the request did originate from a realm in another organization (the “Yes” branch from block 313), then the method continues in block 314.

[0027] At block 314, selective cross-realm authenticator 106 adds an “Other Org” security identifier to the PAC. The “Other Org” security identifier will be used to indicate to the requested resource that the user making the request was authenticated within a realm other than the realm to which the resource belongs.

[0028] At block 316, selective cross-realm authenticator 106 returns a special TGT and the updated PAC to client computer system 112(1). The special TGT will allow the client computer system to send the request to a domain controller in realm 104.

[0029]FIG. 4 illustrates a method for domain controllers and resources in a second realm to verify the requesting user's identity based on authentication data associated with the user and/or the request. The method will be described with reference to a network that is implemented using Kerberos, a well-known network authentication protocol. Although described using Kerberos-specific terminology, it is recognized that selective cross-realm authentication, as described herein, may be implemented in networks that are based on other network authentication protocols. While FIG. 3 is described above with reference to client 112(1), domain controllers 108, and cross-realm authenticator 106, FIG. 4 will be described, for illustrative purposes, with reference to client 112(1), domain controller 110(y), and resource 114(1) as shown in FIG. 1.

[0030] At block 402, client computer system 112(1) sends the request with the special TGT and PAC (as described with respect to FIG. 3) to a domain controller in domain 110(y) that is associated with the requested resource 114(1). The special TGT tells domain 110(y) that the user has been authenticated and the PAC provides the domain 110(y) with a list of security identifiers that are associated with the user.

[0031] At block 404, the domain controller in domain 110(y) generates an authorization client context. The authorization client context is a memory structure that stores representations of the security identifiers that are listed in the PAC.

[0032] At block 406, the domain controller in domain 110(y) performs an access check to determine whether or not the user's identity has been proven to the satisfaction of the requested resource. This process is known as authenticating to a resource. The domain controller in domain 110(y) maintains sets of permissions that define which users are allowed to authenticate to which resources 114. For example, resource 114(2) may store business-sensitive data that may be viewed by users who authenticate through a domain server within the same realm 104, but that should not be viewed by users who authenticate through a domain server in another realm. Furthermore, resource 114(n) may store a group of applications that should be available to any authenticated user, regardless of the realm through which they are authenticated. To define these access levels, the domain server 110(y) may store the following user permissions: Resource ID User Security ID Allowed to Access? Client 114 (2) Authenticated Users Yes Client 114 (2) Other Org No Client 114 (n) Authenticated Users Yes

[0033] The first row indicates that all authenticated users are allowed to authenticate to client 114(2). However, the second row indicates that users that are associated with an “Other Org” security identifier are not allowed to authenticate to client 114(2). The third row indicates that all authenticated users are allowed to authenticate to client 114(n). Performing an access check at the domain controller level provides an added level of security in that even if permissions at the resource level are inadvertently set to allow users authenticated in another realm to access the resource, permissions set at the domain controller level can prevent such access because the user will not be allowed to authenticate to the resource.

[0034] When the domain controller in domain 110(y) performs an access check, the authorization client context (which stores a representation of the security identifiers associated with a user) is compared to the permissions that are defined for the requested resource. In the described implementation, if any of the permissions indicate that the user should not be allowed to authenticate to the resource, then the user is denied access to the requested resource (the “No” branch from block 406).

[0035] At block 408, when it is determined that the user is allowed to authenticate to the requested resource (the “Yes” branch from block 406), the domain controller 110(y) returns a service ticket to the client computer system 112(1). The service ticket contains information that, when presented to the resource, indicates that the user is properly authenticated to the resource.

[0036] At block 410, the client computer system 112(1) sends the request with the service ticket and PAC to the requested resource 114(1).

[0037] At block 412, the requested resource 114(1) generates a user token. The user token is similar to the authorization client context described above with reference to block 404, in that the user token is also a memory structure that stores a representation of the security identifiers that are associated with the user, based on the contents of the PAC.

[0038] At block 414, the resource 114(1) examines the user token to determine whether or not the user is associated with the “Other Org” security identifier, which indicates that the user was authenticated by a domain controller associated with a realm in another organization 104. If the user token does include the “Other Org” security identifier, then the request is handled (the “Yes” branch from block 414).

[0039] At block 416, when it is determined that the user token does not include the “Other Org” security identifier (the “No” branch from block 414), then prior to handling the request, the resource 114(1) adds a “This Org” security identifier to the user token to indicate that the user was authenticated by a domain controller in realm 204.

[0040] Given the described implementation, client computer system (e.g., clients 112 and 114) can maintain permissions at an object level that are associated with the “This Org” and “Other Org” security identifiers. For example, in a particular client computer system, permissions may be defined that provide full access to a particular directory to users associated with the “This Org” identifier and read-only access to users associated with the “Other Org” identifier. In this way, system administrators of the client computer systems can prevent users authenticated in another realm from accessing sensitive data that should only be available to users who can authenticate from within the same realm.

Conclusion

[0041] Although the systems and methods have been described in language specific to structural features and/or methodological steps, it is to be understood that the invention defined in the appended claims is not necessarily limited to the specific features or steps described. Rather, the specific features and steps are disclosed as preferred forms of implementing the claimed invention. 

1. A method comprising: receiving, from an entity authenticated in a first realm, a request to access a resource associated with a second realm; and associating with the entity an identifier such that resources within the second realm can make authentication and access control decisions based on the identifier.
 2. The method as recited in claim 1 wherein the entity comprises a user.
 3. The method as recited in claim 1 wherein the entity comprises an application.
 4. The method as recited in claim 1 wherein the entity comprises a computer system.
 5. The method as recited in claim 1 wherein the identifier indicates whether or not the entity was authenticated in the second realm.
 6. The method as recited in claim 1 wherein the identifier indicates a type of authentication associated with the entity.
 7. The method as recited in claim 1 wherein the associating comprises adding a security identifier to a privilege access certificate associated with the entity.
 8. The method as recited in claim 1 wherein the associating comprises adding a security identifier to a privilege access certificate associated with the request.
 9. The method as recited in claim 1 wherein the associating comprises setting a flag associated with the entity.
 10. The method as recited in claim 1 wherein the associating comprises setting a flag associated with the request.
 11. A cross-realm authenticator configured to perform the method as recited in claim
 1. 12. A domain controller configured to perform the method as recited in claim
 1. 13. One or more computer-readable media comprising computer executable instructions that, when executed, direct a computing system to perform the method as recited in claim
 1. 14. A method comprising: receiving, from an entity authenticated in a first realm, a request to access a resource associated with a second realm; determining whether the entity is allowed to access the resource; and in an event that the entity is allowed to access the resource, granting the entity access to the resource.
 15. The method as recited in claim 14 wherein the determining comprises comparing a security identifier associated with the entity with an access control list associated with the resource.
 16. The method as recited in claim 14 wherein the determining comprises comparing data associated with a security token to an access control list.
 17. The method as recited in claim 16 wherein the security token is selected from a group of security tokens comprising an SAML token and an XrML token.
 18. The method as recited in claim 14 wherein the granting comprises completing an authentication request.
 19. The method as recited in claim 14 wherein the granting comprises the completion of an NTLM authentication request.
 20. The method as recited in claim 14 wherein the granting comprises serving a service ticket associated with the resource to the entity.
 21. A domain controller configured to perform the method as recited in claim
 14. 22. One or more computer-readable media comprising computer executable instructions that, when executed, direct a computing system to perform the method as recited in claim
 14. 23. A method comprising: associating user access permissions with a system resource, the user access permissions based on a realm in which a user is authenticated; receiving a request from a client to access the system resource; and determining based on the user access permissions, whether to grant the client access to the system resource.
 24. The method as recited in claim 23 wherein the determining comprises comparing a security identifier associated with the client with the user access permissions.
 25. A method comprising: receiving at a domain controller associated with a first realm a request from a user to access a resource associated with a second realm; authenticating the user based on a user account maintained by the domain controller associated with the first realm; and associating an identifier with the user, the identifier indicating that the user was not authenticated by a domain controller associated with the second realm.
 26. The method as recited in claim 25, further comprising: receiving at a domain controller associated with the resource, a request from the user to access the resource; determining whether the user is authorized to access the resource; and in an event that the user is authorized to access the resource, granting the user access to the resource.
 27. The method as recited in claim 25, further comprising: receiving at the resource, a request from the user to access the resource; determining whether the user is authorized to access the resource; and in an event that the user is authorized to access the resource, granting the user access to the resource.
 28. A method comprising: receiving a request from a user in a first realm to access a resource in a second realm; generating a ticket that grants the user access to the second realm, the ticket indicating that the user was not authenticated in the second realm; verifying that a user not authenticated in the second realm has permission to access the resource; and granting the user access to the resource.
 29. One or more computer-readable media comprising computer executable instructions that, when executed, direct a computing system to: receive an access request from an authenticated entity to access a resource associated with a first realm; determine whether the entity was authenticated within the first realm; and in an event that the entity was authenticated within the first realm, associate a first realm identifier with the entity.
 30. The one or more computer-readable media as recited in claim 29 further comprising computer executable instructions that, when executed, direct the computing system to determine whether the entity was authenticated within the first realm by: examining a security identifier associated with the entity to determine whether the security identifier indicates that the entity was authenticated by a domain controller associated with a second realm.
 31. The one or more computer-readable media as recited in claim 29 further comprising computer executable instructions that, when executed, direct the computing system to associate a first realm identifier with the entity by: adding a representation of a security identifier to a token that represents the entity, the security identifier indicating that the entity was authenticated within the first realm.
 32. A cross-realm authenticator comprising: means for receiving, from an entity authenticated by a domain controller associated with a first realm, a request to access a resource associated with a second realm; and means for associating with the entity an identifier that indicates that the entity was authenticated by a domain controller associated with a realm other than the second realm.
 33. The cross-realm authenticator as recited in claim 32 wherein the means for associating comprises: a data structure that maintains a plurality of security identifiers that are associated with the entity.
 34. A system comprising: a first domain controller implemented to maintain first user accounts and to authenticate users based on the first user accounts; a second domain controller implemented to maintain second user accounts and to authenticate users based on the second user accounts; and a cross-realm authenticator configured to associate, with a request from an entity authenticated by the first domain controller to access a resource associated with the second domain controller, an identifier that indicates that the request is from an entity authenticated by a domain controller other than the second domain controller.
 35. The system as recited in claim 34 wherein the second domain controller is further configured to verify that an entity authenticated by a domain controller other than the second domain controller is allowed to access the resource. 